<?php
namespace Libs\Common;

class SexCommon
{
    /**
     * Convert sex with text male/female to id of master data
     * @author ThamLT
     * */
     public static function convertSex($sex)
     {
        $iReturn = 99;
        if ($sex == 'male') {
            $iReturn = 1;
        } elseif ($sex == 'female') {
            $iReturn = 2;
        }
        return $iReturn;
     }


}
